shadowsocks-libev: shorten init script by 2 lines
authorYousong Zhou <[email protected]>
Thu, 24 Aug 2017 08:57:59 +0000 (16:57 +0800)
committerYousong Zhou <[email protected]>
Wed, 30 Aug 2017 02:13:30 +0000 (10:13 +0800)
Signed-off-by: Yousong Zhou <[email protected]>
net/shadowsocks-libev/Makefile
net/shadowsocks-libev/files/shadowsocks-libev.init

index 1fbee8d60babd2fc81e1b61660683a81702ec617..ad43239287a0b0a63e7c4d6370e2e4ee38caad51 100644 (file)
@@ -14,7 +14,7 @@ include $(TOPDIR)/rules.mk
 #
 PKG_NAME:=shadowsocks-libev
 PKG_VERSION:=3.0.8
-PKG_RELEASE:=10
+PKG_RELEASE:=11
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(PKG_VERSION)
index dbd64a707a59cfd9d2846e1d6578d1f672fafa3c..98d4add347e0e861a1eb1c8292ee97f9f1f9cdf7 100644 (file)
@@ -28,9 +28,7 @@ ss_mkjson_() {
        local func
 
        for func in "$@"; do
-               if ! "$func"; then
-                       return 1
-               fi
+               "$func" || return 1
        done
 }
 
@@ -184,7 +182,7 @@ ss_rules() {
 }
 
 start_service() {
-       local cfgtype="$1"
+       local cfgtype
 
        mkdir -p "$ss_confdir"
        config_load shadowsocks-libev